import java.net.MalformedURLException;
import java.rmi.*;
public class CalClient {
	public static void main(String[] args)  throws RemoteException,NotBoundException, MalformedURLException{
		calculatorInterface rmObj = (calculatorInterface)Naming.lookup("rmi://172.16.1.2/CalServer");
			
		System.out.println(rmObj.add(10,10));

	}
}